/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022.
 * Description: support RTOS tinysleep feature
 * Author: lincheng <lincheng8@huawei.com>
 * Create: 2022-03-09
 */

#ifndef __TINYSLEEP_H__
#define __TINYSLEEP_H__

#ifdef CONFIG_RTOS_TINYSLEEP
bool tinysleep_test_and_clear(int inirq);
unsigned long long *tinysleep_get_wait_addr(unsigned int cpu);
void tinysleep_wakeup(unsigned int cpu);
#else
static inline unsigned long long *tinysleep_get_wait_addr(unsigned int cpu)
{
	return NULL;
}

static inline void tinysleep_wakeup(unsigned int cpu)
{
}
#endif
#endif
